//package com.cyj.springbootservice.config;
//
//
//import com.cyj.springbootservice.interceptor.RedisCacheInterceptor;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
///**
// * @description: Interceptor 拦截器
// * @Author C_Y_J
// * @create 2021-03-22 09:36
// **/
//@Configuration
//public class WebConfig implements WebMvcConfigurer {
//
//    @Autowired
//    private RedisCacheInterceptor redisCacheInterceptor;
//
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        // 添加自定义的拦截器 拦截所有路径
//        registry.addInterceptor(this.redisCacheInterceptor).addPathPatterns("/**");
//    }
//}
